package presentation.panels.modifierUser;

import java.awt.Component;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;

@SuppressWarnings("serial")
public class ImageRenderer extends DefaultTableCellRenderer {
    JLabel lbl = new JLabel();

    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
        boolean hasFocus, int row, int column) {
//        lbl.setText((String) value);
//        lbl.setIcon(new ImageIcon("/Users/ahmeddammak/Documents/workspace/AnoiarProject/src/images/showInCal.gif"));
        lbl.setIcon(new ImageIcon("/Users/ahmeddammak/Documents/workspace/icone-supprimer.gif"));
        return lbl;
    }

}
